-
Couldn't load subscription status.
- Fork 6.5k
device_map in load_model_dict_into_meta
#10851
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can we test this better?
|
@sayakpaul It was picked up in nightly tests, not sure why it wasn't picked up in the model refactor PR's fast tests, there are fast tests for IPAdapter afaik. |
Because these are not fast tests: They won't be triggered even after #10310 as they are all fast tests run on GPU. Additionally, in the IP Adapter fast tests, do we have the codepath that touches the line under consideration i.e., |
|
There are also mixins for the fast tests diffusers/tests/pipelines/test_pipelines_common.py Lines 245 to 491 in 6cef7d2
https://github.com/search?q=repo%3Ahuggingface%2Fdiffusers%20IPAdapterTesterMixin&type=code diffusers/tests/pipelines/test_pipelines_common.py Lines 494 to 579 in 6cef7d2
diffusers/tests/pipelines/flux/test_pipeline_flux.py Lines 28 to 30 in 6cef7d2
|
|
Maybe they are not invoking |
|
It was not hitting. Tests are using |
|
issue in 7d96d88 was previously uncaught as diffusers/src/diffusers/loaders/unet.py Line 149 in 6cef7d2
Similar issue in |
|
Thanks for fixing those! |
|
Thanks for the fix @hlky ! |
What does this PR do?
Fixes #10848
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.